-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Add fetchRange and fetchRegion to SharedBlobCacheService #131000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add fetchRange and fetchRegion to SharedBlobCacheService #131000
Conversation
This commit adds two new methods to SharedBlobCacheService, fetchRange and fetchRegion. This new methods provide the same functionality as their maybe version, but the main difference is that they take a new boolean parameter (force) that allows the caller to specify if fetching the range/region should force an eviction if there are no free regions available.
|
Pinging @elastic/es-distributed-indexing (Team:Distributed Indexing) |
andreidan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks Francisco
| * </p> | ||
| * <p> | ||
| * This method returns as soon as the download tasks are instantiated, but the tasks themselves | ||
| * are run on the bulk executor. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * are run on the bulk executor. | |
| * are run on the fetch executor. |
|
Hi, due to workload this week, I might get to this next week. Feel free to replace me if need-be, else I'll review as soon as possible. |
Thanks for the heads up @kingherc. I'm going to merge this PR once CI is green so we can experiment on QA next week. But I'll appreciate your review once you have the bandwidth and I'll tackle any comments you may have. |
|
@elasticmachine update branch |
|
@elasticmachine update branch |
) This commit adds two new methods to SharedBlobCacheService, fetchRange and fetchRegion. This new methods provide the same functionality as their maybe version, but the main difference is that they take a new boolean parameter (force) that allows the caller to specify if fetching the range/region should force an eviction if there are no free regions available.
) This commit adds two new methods to SharedBlobCacheService, fetchRange and fetchRegion. This new methods provide the same functionality as their maybe version, but the main difference is that they take a new boolean parameter (force) that allows the caller to specify if fetching the range/region should force an eviction if there are no free regions available.
This commit adds two new methods to SharedBlobCacheService, fetchRange and fetchRegion.
This new methods provide the same functionality as their maybe version, but the main difference
is that they take a new boolean parameter (force) that allows the caller to specify if fetching the
range/region should force an eviction if there are no free regions available.
It also removes the unused method maybeFetchFullEntry.